import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route: Route[] = [
  {
    path: '/clusterManagement',
    component: Layout,
    redirect: '/clusterManagement',
    meta: { title: 'message.menu.clusterManagement.name', icon: 'sfont system-xitongzhuangtai' },
    children: [
      // {
      //   path: 'clusterResource',
      //   component: createNameComponent(() => import('@/views/main/admin/clusterManagement/clusterResource/index.vue')),
      //   meta: { title: 'message.menu.clusterManagement.clusterResource' }
      // },
      // {
      //   path: 'clusterCIRD',
      //   component: createNameComponent(() => import('@/views/main/admin/clusterManagement/clusterCIRD/index.vue')),
      //   meta: { title: 'message.menu.clusterManagement.clusterCIRD' }
      // },
      {
        path: 'podsLoad',
        component: createNameComponent(() => import('@/views/main/admin/clusterManagement/podsLoad/index.vue')),
        meta: { title: 'message.menu.clusterManagement.podsLoad' }
      },
    ]
  }
]

export default route